package us.icitap.timsportal.ejb.remote;

import java.util.Date;
import java.util.List;

import javax.ejb.Remote;

import us.icitap.timsportal.business.SimpleUser;
import us.icitap.timsportal.entity.Officer;
import us.icitap.timsportal.entity.OrgStructure;
import us.icitap.timsportal.entity.PortalSession;
import us.icitap.timsportal.entity.User;

@Remote
public interface PortalBeanRemote {

	public void foo();
	//User
	User getUserEntity(String username);	
//	User checkUser(String username, String password);	
//	User saveUser(User user);	
	SimpleUser getModuleUser(String portalSessionId, String moduleSessionId);
	String getModuleUsername(String portalSessionId, String moduleSessionId);
	List<User> getUserByRole(String roleId);
	User getUserLastUpdatedDettails(String username);
	List<Officer> getRmisOfficerByName(String name, String surname);
	Officer getRmisOfficerById(String officerId);
	
	//Lists
	Date getSysdate();
//	List<Module> getModuleList();	
//	List<User> getUserList(String username ,Integer osid);
//	List<OrgStructure> getOrgStructureList();
	//Set<Role> getRoleListByModule(Module m);	

	//PortalSession
	public void savePortalSession(PortalSession portalSession);
	PortalSession searchPortalSessionInDB(String username,
			String portalSessionId, String moduleSessionId);
	PortalSession searchPortalSessionInDB(String portalSessionId);
	PortalSession searchPortalSessionInDB(String portalSessionId,
			String moduleSessionId);
	List<OrgStructure> getRmisOrgStructureList(String arg);
	OrgStructure getOfficerBaseStructureByModule(Officer o, int moduleId);
	
}
